package com.sinat.flowable.controller;

import com.sinat.flowable.common.Result;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
import javax.servlet.http.HttpServletRequest;

@RestController
public class LoginController {

    @GetMapping(value = "/sys/user/getUserInfo1")
    public String getUserInfo(@RequestParam(required = false) String roleId, String userId, HttpServletRequest request) {
        return "{\"code\":200,\"msg\":\"操作成功\",\"data\":{\"sysUser\":{\"createBy\":\"\",\"createDate\":\"2020-06-07\",\"createTime\":\"2020-06-07 09:56:32\",\"updateBy\":\"admin\",\"updateDate\":\"2020-06-21\",\"updateTime\":\"2020-06-21 11:10:43\",\"userId\":\"admin\",\"userName\":\"admin\",\"sex\":\"1\",\"roleId\":\"admin\",\"orgId\":\"1000000000\",\"mobile\":\"18888888888\",\"idCardNo\":\"xxx\",\"email\":\"xxx@yyy.zz\",\"status\":\"1\",\"sortNo\":1,\"remark\":\"1\",\"orgName\":null},\"sysOrg\":{\"createBy\":null,\"createDate\":null,\"createTime\":null,\"updateBy\":\"admin\",\"updateDate\":\"2019-09-08\",\"updateTime\":\"2019-09-08 16:37:49\",\"orgId\":\"1000000000\",\"orgName\":\"总行\",\"parentOrgId\":\"\",\"shortName\":\"总行\",\"orgType\":\"1\",\"orgLevel\":\"1\",\"orgLevelCode\":\"1000000000\",\"remark\":\"\",\"isLeaf\":\"0\",\"parentOrgName\":null},\"sysRole\":{\"createBy\":null,\"createDate\":null,\"createTime\":null,\"updateBy\":null,\"updateDate\":null,\"updateTime\":null,\"roleId\":\"admin\",\"roleName\":\"admin\",\"sortNo\":1,\"remark\":\"超级管理员\"},\"sysRoles\":[{\"createBy\":null,\"createDate\":null,\"createTime\":null,\"updateBy\":null,\"updateDate\":null,\"updateTime\":null,\"roleId\":\"admin\",\"roleName\":\"admin\",\"sortNo\":1,\"remark\":\"超级管理员\"}],\"routes\":[{\"routeId\":\"sys\",\"path\":\"/sys\",\"component\":\"\",\"redirect\":\"\",\"hidden\":false,\"name\":\"Sys\",\"routeParentId\":null,\"meta\":{\"title\":\"系统管理\",\"icon\":\"tools\",\"isCache\":true,\"affix\":false},\"children\":[{\"routeId\":\"sysConfig\",\"path\":\"config\",\"component\":\"views/sys/config/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysConfig\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"参数管理\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysCodeType\",\"path\":\"codeType\",\"component\":\"views/sys/codeType/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysCodeType\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"代码类别\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysCodeInfo\",\"path\":\"codeInfo\",\"component\":\"views/sys/codeInfo/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysCodeInfo\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"代码信息\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysMenu\",\"path\":\"menu\",\"component\":\"views/sys/menu/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysMenu\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"菜单管理\",\"icon\":\"tree\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysFunc\",\"path\":\"func\",\"component\":\"views/sys/func/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysFunc\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"功能管理\",\"icon\":\"tree\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysOrg\",\"path\":\"org\",\"component\":\"views/sys/org/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysOrg\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"机构管理\",\"icon\":\"tree\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysRole\",\"path\":\"role\",\"component\":\"views/sys/role/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysRole\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"角色管理\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysUser\",\"path\":\"user\",\"component\":\"views/sys/user/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysUser\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"用户管理\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysDataPermission\",\"path\":\"dataPermission\",\"component\":\"views/sys/dataPermission/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysDataPermission\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"数据权限\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysLog\",\"path\":\"log\",\"component\":\"views/sys/log/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysLog\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"系统日志\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysPost\",\"path\":\"post\",\"component\":\"views/sys/post/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysPost\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"岗位管理\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysJob\",\"path\":\"job\",\"component\":\"views/sys/job/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysJob\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"定时任务\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysJobLog\",\"path\":\"jobLog\",\"component\":\"views/sys/jobLog/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysJobLog\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"定时任务日志\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"sysOauthClientDetails\",\"path\":\"oauthClientDetails\",\"component\":\"views/sys/oauthClientDetails/index\",\"redirect\":null,\"hidden\":false,\"name\":\"SysOauthClientDetails\",\"routeParentId\":\"sys\",\"meta\":{\"title\":\"客户端管理\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null}]},{\"routeId\":\"demo\",\"path\":\"/demo\",\"component\":\"\",\"redirect\":\"\",\"hidden\":false,\"name\":\"Demo\",\"routeParentId\":null,\"meta\":{\"title\":\"示例管理\",\"icon\":\"tools\",\"isCache\":true,\"affix\":false},\"children\":[{\"routeId\":\"demoHelloworld\",\"path\":\"helloworld\",\"component\":\"views/demo/helloworld/index\",\"redirect\":null,\"hidden\":false,\"name\":\"DemoHelloworld\",\"routeParentId\":\"demo\",\"meta\":{\"title\":\"HelloWorld\",\"icon\":\"example\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"demoZjmzxfzhl\",\"path\":\"zjmzxfzhl\",\"component\":\"views/demo/zjmzxfzhl/index\",\"redirect\":null,\"hidden\":false,\"name\":\"DemoZjmzxfzhl\",\"routeParentId\":\"demo\",\"meta\":{\"title\":\"开发示例01\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null}]},{\"routeId\":\"flowable\",\"path\":\"/flowable\",\"component\":\"\",\"redirect\":\"\",\"hidden\":false,\"name\":\"Flowable\",\"routeParentId\":null,\"meta\":{\"title\":\"流程管理\",\"icon\":\"tools\",\"isCache\":true,\"affix\":false},\"children\":[{\"routeId\":\"flowableForm\",\"path\":\"form\",\"component\":\"views/flowable/form/index\",\"redirect\":null,\"hidden\":false,\"name\":\"FlowableForm\",\"routeParentId\":\"flowable\",\"meta\":{\"title\":\"表单管理\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"flowableModel\",\"path\":\"model\",\"component\":\"views/flowable/model/index\",\"redirect\":\"\",\"hidden\":false,\"name\":\"FlowableModel\",\"routeParentId\":\"flowable\",\"meta\":{\"title\":\"模型管理\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"flowableProcessDefinition\",\"path\":\"processDefinition\",\"component\":\"views/flowable/processDefinition/index\",\"redirect\":null,\"hidden\":false,\"name\":\"FlowableProcessDefinition\",\"routeParentId\":\"flowable\",\"meta\":{\"title\":\"流程定义\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"flowableProcessInstance\",\"path\":\"processInstance\",\"component\":\"views/flowable/processInstance/index\",\"redirect\":\"\",\"hidden\":false,\"name\":\"FlowableProcessInstance\",\"routeParentId\":\"flowable\",\"meta\":{\"title\":\"流程实例\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"flowableTask\",\"path\":\"task\",\"component\":\"views/flowable/task/index\",\"redirect\":null,\"hidden\":false,\"name\":\"FlowableTask\",\"routeParentId\":\"flowable\",\"meta\":{\"title\":\"任务管理\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null}]},{\"routeId\":\"monitor\",\"path\":\"/monitor\",\"component\":\"\",\"redirect\":\"\",\"hidden\":false,\"name\":\"monitor\",\"routeParentId\":null,\"meta\":{\"title\":\"监控管理\",\"icon\":\"tools\",\"isCache\":true,\"affix\":false},\"children\":[{\"routeId\":\"monitorDruid\",\"path\":\"druid\",\"component\":\"views/monitor/druid/index\",\"redirect\":\"\",\"hidden\":false,\"name\":\"MonitorDruid\",\"routeParentId\":\"monitor\",\"meta\":{\"title\":\"数据监控\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null},{\"routeId\":\"monitorServer\",\"path\":\"server\",\"component\":\"views/monitor/server/index\",\"redirect\":\"\",\"hidden\":false,\"name\":\"server\",\"routeParentId\":\"monitor\",\"meta\":{\"title\":\"服务监控\",\"icon\":\"list\",\"isCache\":true,\"affix\":false},\"children\":null}]}],\"authorities\":[{\"authority\":\"flowable:processInstanceImage\"},{\"authority\":\"flowable:processInstance:suspendOrActivate\"},{\"authority\":\"monitor:druid:list\"},{\"authority\":\"sys:role:listAll\"},{\"authority\":\"sys:dataPermission:delete\"},{\"authority\":\"flowable:model:list\"},{\"authority\":\"sys:func:list\"},{\"authority\":\"flowable:processDefinitionIdentityLink:delete\"},{\"authority\":\"sys:config:save\"},{\"authority\":\"sys:dataPermission:update\"},{\"authority\":\"sys:user:export\"},{\"authority\":\"sys:codeInfo:save\"},{\"authority\":\"sys:config:update\"},{\"authority\":\"sys:codeType:save\"},{\"authority\":\"flowable:processDefinition:list\"},{\"authority\":\"sys:post:savePostUsers\"},{\"authority\":\"flowable:processInstance:list\"},{\"authority\":\"sys:oauthClientDetails:save\"},{\"authority\":\"flowable:form:delete\"},{\"authority\":\"flowable:processDefinition:suspendOrActivate\"},{\"authority\":\"sys:role:getRolePermissions\"},{\"authority\":\"sys:role:list\"},{\"authority\":\"flowable:form:update\"},{\"authority\":\"flowable:processInstance:delete\"},{\"authority\":\"sys:menu:getTreeData\"},{\"authority\":\"sys:post:deletePostUsers\"},{\"authority\":\"flowable:processDefinition:xml\"},{\"authority\":\"sys:post:save\"},{\"authority\":\"sys:func:save\"},{\"authority\":\"sys:post:delete\"},{\"authority\":\"sys:role:save\"},{\"authority\":\"sys:role:saveRolePermissions\"},{\"authority\":\"flowable:model:delete\"},{\"authority\":\"sys:codeType:delete\"},{\"authority\":\"demo:zjmzxfzhl:list\"},{\"authority\":\"flowable:model:import\"},{\"authority\":\"sys:org:update\"},{\"authority\":\"sys:role:update\"},{\"authority\":\"sys:job:save\"},{\"authority\":\"sys:role:getRoleUser\"},{\"authority\":\"sys:org:getTreeData\"},{\"authority\":\"sys:job:changeStatus\"},{\"authority\":\"sys:org:list\"},{\"authority\":\"sys:oauthClientDetails:delete\"},{\"authority\":\"sys:user:save\"},{\"authority\":\"demo:zjmzxfzhl:update\"},{\"authority\":\"sys:menu:update\"},{\"authority\":\"sys:menu:delete\"},{\"authority\":\"sys:post:list\"},{\"authority\":\"sys:codeInfo:delete\"},{\"authority\":\"sys:dataPermission:save\"},{\"authority\":\"sys:func:update\"},{\"authority\":\"flowable:task:list\"},{\"authority\":\"demo:zjmzxfzhl:save\"},{\"authority\":\"sys:func:delete\"},{\"authority\":\"sys:menu:list\"},{\"authority\":\"demo:zjmzxfzhl:delete\"},{\"authority\":\"flowable:task:execute\"},{\"authority\":\"flowable:processDefinition:delete\"},{\"authority\":\"sys:codeInfo:update\"},{\"authority\":\"sys:job:delete\"},{\"authority\":\"flowable:model:saveModelEditor\"},{\"authority\":\"sys:user:delete\"},{\"authority\":\"sys:jobLog:list\"},{\"authority\":\"sys:job:run\"},{\"authority\":\"sys:role:deleteRoleUsers\"},{\"authority\":\"sys:config:list\"},{\"authority\":\"sys:org:save\"},{\"authority\":\"sys:user:update\"},{\"authority\":\"sys:post:getPostUser\"},{\"authority\":\"sys:job:list\"},{\"authority\":\"flowable:processDefinition:import\"},{\"authority\":\"flowable:form:save\"},{\"authority\":\"sys:role:saveRoleUsers\"},{\"authority\":\"flowable:processDefinitionIdentityLink:save\"},{\"authority\":\"sys:post:update\"},{\"authority\":\"flowable:model:deploy\"},{\"authority\":\"sys:user:list\"},{\"authority\":\"sys:menu:save\"},{\"authority\":\"sys:codeType:list\"},{\"authority\":\"monitor:server:getServerInfo\"},{\"authority\":\"sys:org:delete\"},{\"authority\":\"flowable:model:save\"},{\"authority\":\"sys:job:update\"},{\"authority\":\"flowable:model:update\"},{\"authority\":\"sys:codeInfo:list\"},{\"authority\":\"sys:config:delete\"},{\"authority\":\"sys:role:delete\"},{\"authority\":\"flowable:form:list\"},{\"authority\":\"sys:codeType:update\"},{\"authority\":\"sys:oauthClientDetails:list\"},{\"authority\":\"sys:dataPermission:list\"},{\"authority\":\"flowable:processDefinitionIdentityLink:list\"},{\"authority\":\"sys:oauthClientDetails:update\"},{\"authority\":\"sys:log:list\"}]}}";
    }

}
